<template>
  <div id="app">
    <el-config-provider :locale="zhCn">
      <router-view />
    </el-config-provider>
  </div>
</template>

<script setup>
// Main application container
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 需要日期控件的时候再引入，不要全局引
// import 'dayjs/locale/zh-cn'
</script>

<style lang="less">
#app {
  width: 100vw;
  height: 100%;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden; // 防止横向滚动条
}

* {
  box-sizing: border-box;
}
</style>